package bavaria.hightec.banking;

import java.util.Date;

public final class Accounting {
	
	public Accounting next;
	private final Money amount;
	private final String matter;
	private final Date accounting;
	
	public Accounting(Date accounting,Money amount,String matter){
		
		this.amount=amount;
		this.matter=matter;
		this.accounting=accounting;
	}
	
	public final void getData(){
		System.out.println("Date: " + accounting + " "+amount.getAmount() +" "+amount.getCurrency()+" "+ matter);
	}
	

}
